{template header}
<SCRIPT LANGUAGE="JavaScript">
<!--
 {$pageinfo}
//-->
</SCRIPT>
 

<form action="{eval echo U('Order/submitorder')}" method=post name=theForm>
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e6e6e6"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" bgcolor="#FFFFFF"><table width="900" border="0" align="center" cellpadding="0" cellspacing="10" bgcolor="#666666">
          <tr>
            <td height="600" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="720" height="1" colspan="3" bgcolor="#E6E6E6"></td>
                </tr>
              <tr>
                <td height="30" colspan="3" bgcolor="#f9f9f9"><table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="25"><img src="{APPPUBLIC}Images/Public/Point.gif" width="14" height="10" /></td>
                    <td class="Categories_Menu"><a href="#" class="Categories_Menu_a">首页</a> <font face="宋体">></font> 订单填写</td>
                    </tr>
                  </table></td>
                </tr>
              <tr>
                <td height="1" colspan="3" bgcolor="#E6E6E6"></td>
                </tr>
              </table>
              <table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="100" valign="bottom"><img src="{APPPUBLIC}Images/ShoppingBag/Title_1.gif" /></td>
                  <td width="50"></td>
                  <td valign="bottom"><img src="{APPPUBLIC}Images/ShoppingBag/Title_2_2.gif" /></td>
                  <td width="50"></td>
                  <td valign="bottom"><img src="{APPPUBLIC}Images/ShoppingBag/Title_3.gif" /></td>
                  </tr>
                <tr>
                  <td height="30" colspan="5">&nbsp;</td>
                  </tr>
                </table>
				<TABLE width=98% border=0 cellpadding="3" cellspacing="0" align="center" >
				 <tr >
                  <td width="80%" class="Order_Title"  > 收货人信息</td>
                 <td width="20%" class="Order_Title"  ><a href="{eval echo U('Order/checkout')}" class="edit">修改</a></td>
                </tr>
				<TR>
					<td colspan=2>
					<div id="div_user_address_table">
					 {template order_address}
					</div> 
					</td>
				</tr>
				 <tr >
                  <td width="80%" class="Order_Title"  >  配送方式</td>
                 <td width="20%" class="Order_Title"  ><a href="{eval echo U('Order/shiping')}" class="edit">修改</a></td>
                </tr>
				<tr>
				<td colspan=2  height="60" >
				<input type=hidden name=address_id value=$myaddress['address_id']>
				 快递－支持货到付款－运费15元每单，购物满200元免运费。
				</td>
				</tr>
				 <tr >
                  <td width="80%" class="Order_Title"  >  支付方式</td>
                 <td width="20%" class="Order_Title"  ><a href="{eval echo U('Order/payment')}" class="edit">修改</a></td>
                </tr>

				
                      <tr>
                      <td colspan=2><span class="Order_Txt">
                     
                        {$payinfo['pay_name']}</span></td>
                      <td class="Order_txt2"> </td>
                </tr>     
				 <tr >
                   <td width="80%" class="Order_Title"  >  送货时间</td>
                 <td width="20%" class="Order_Title"  ><a href="{eval echo U('Order/orderday')}" class="edit">修改</a></td>
                 
                </tr>

				 	
                      <tr>
                      <td colspan=2><span class="Order_Txt">
                       {$orderday['name']}&nbsp;&nbsp;{$orderday['des']}
					   </span></td>
                       
                      </tr>  
					  
			 <tr >
                   <td  colspan=2  >  

					 <table width="100%" height="50" border="0">
					  <tr>
						<td width="50%" valign="top"><table width="99%" height="66" border="0">
						  <tr>
							<td colspan="2"  class="Order_Title">你有礼品卡吗?</td>
							</tr>
						  <tr>
							<td width="13%" ><span id="Card_String">选择已有:</span></td>
							<td width="87%"><span id="Card_String">
							  <select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
							    <option value="0" selected>请选择</option>
							    <!--{loop $bonus_list $key $val}-->
							    <option value="{$val['bonus_id']}" >{$val['type_name']}[{$val['bonus_money_formated']}] </option>
							    <!--{/loop}-->  
							    </select>
							  
							  
							  </span></td>
							</tr>
						  <tr>
						    <td><span id="Card_String">输入卡号:</span></td>
						    <td><span id="Card_String">
						      <input name="bonus_sn" id="bonus_sn" size="17" onclick="CheckBonus(document.forms['theForm'].elements['bonus_sn'].value)">
						      </span>						      <input name="Input" type="submit"  class="input_4"  value="验证" /></td>
						    </tr>
						  </table></td>
						<td width="50%" valign="top"><table width="99%" height="65" border="0" align="right">
						  <tr>
							<td colspan="2"  class="Order_Title">您需要开具发票吗？</td>
						  </tr>
						  <tr>
							<td width="26%"><input name="inv_type" id="radio" value="1" onclick="checkedInvoice()" type="radio">
					是　</td>
							<td width="74%"><input name="inv_type" id="radio2" value="0" onclick="nocheckInvoice()" checked="checked" type="radio">
					否 </td>
						  </tr>
						  <tr>
							<td>发票抬头：</td>
							<td><input value="" name="inv_payee" id="inv_payee" size="22" type="text">
							<input value="服装"  name="inv_content" id="inv_content" size="22" type="hidden"></td>
						  </tr>
						  <tr></tr>
						</table></td>
					  </tr>
					</table>
				</td>
                   
                 
                </tr>
				<tr >
				<tr >
                   <td  colspan=2 class="Order_Title"  >  商品清单</td>
                   
                 
                </tr>
				<tr >
                   <td  colspan=2 >  
				   <table>
				   
                    <tr>
                      <td colspan="7" class="line_Bg_1" height="1"></td>
                    </tr>
					  <tr bgcolor="#f1f1f1">
						  <td width="10%"  align="center">缩列图</td>
						  <td height="30" align="center">物品名称</td>
						  <td width="10%" align="center">颜色</td>
						  <td width="8%" align="center">尺码</td>
						  <td width="10%" align="center">单价（元）</td>
						  <td width="8%" align="center">数量</td>
						  <td width="8%" align="center">合计（元）</td>
						 
					  </tr>
					<!--{loop $goods_list $key $val}-->
                    <tr>
                      <td height="70" align="center" bgcolor="#FFFFFF"><img src="{$val['goods_thumb']}" width="60" height="60" border="0" class="P_Img" /></td>
                      <td height="70" align="center" bgcolor="#FFFFFF">{$val['goods_name']}</td>
                      <td align="center" bgcolor="#FFFFFF"><img src="{$val['color']}" /></td>
                      <td align="center" bgcolor="#FFFFFF">{$val['size']}</td>
                      <td align="center" bgcolor="#FFFFFF">{$val['goods_price']}</td>
                      <td align="center" bgcolor="#FFFFFF">{$val['goods_number']}</td>
                      <td align="center" bgcolor="#FFFFFF">{$val['subtotal']}</td>
                    </tr>
					<!--{/loop}--> 	  
				   </table>

					</td>            
                 
                </tr>

				<tr >
                   <td  colspan=2 class="Order_Title"  > 费用合计</td> 
                </tr>
				<tr >
                   <td  colspan=2  > {$goods_total}</td> 
                </tr>
				
				 
				<tr >
                  <td  colspan=2  height="80"> <input name="" type="submit"  class="input_4"  value="提交订单" />		  </td>
                 
                </tr>
				</table>
                
                </td>
            </tr>
        </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</form>

<SCRIPT LANGUAGE="JavaScript">
<!--
	//选择开发票
function checkedInvoice()
{
    var Invoice = document.getElementById("inv_payee");
    Invoice.disabled ='';
}
//取消选择发票
function nocheckInvoice()
{
    var Invoice = document.getElementById('inv_payee');
    Invoice.setAttribute("value","");
    Invoice.disabled ='disabled';
}
//-->
</SCRIPT>

{template footer}